#include "Thread.hpp"
#include <unistd.h>

void *Routine(void* args)
{
    std::cout<<"hello new tcb"<<std::endl;
}

int main()
{
    MyThread::Thread t([](){
        char name[128];
        pthread_getname_np(pthread_self(),name,sizeof name);
        std::cout<<"hello new tcb: "<< name <<std::endl;
    });
    t.Start();
    t.Detach();
    t.Stop();
    t.Join();
    return 0;
}